<?php
namespace app\index\controller;

use app\index\controller\common as common;

use app\index\model\Assets as Assets;
use app\index\model\Assetsversions as versions;

use app\index\validate\VersionInfoCheck;
use app\index\validate\Versionaddcheck;


class Assetsversions extends common
{
   public function get_assets_id(){
	   	/*验证参数*/
	    $validate = new VersionInfoCheck();
	    list($msg,$result)= $validate->goapiCheck();
	    if($msg){
		   	list($msg,$result) = Assets::get_assets_id();
		  }
	    return returnresult($msg,$result) ;    	
   }

  public function add_assets_version()
  {
        /*验证参数*/
        $validate = new Versionaddcheck();
        list($msg,$result)= $validate->goapiCheck();      
        if($msg){
            list($msg,$result) = versions::add_data();
        }
        return returnresult($msg,$result) ; 
    }

}

